<template>
  <div>
    <el-menu
      default-active="user"
      menu-trigger="click"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      router="true" style="height: 700px">
      <el-menu-item index="coursede">
        <template slot="title"><i class="el-icon-menu"></i>课程管理</template>
      </el-menu-item>
      <el-menu-item index="videode">
        <template slot="title"><i class="el-icon-menu"></i>视频管理</template>
      </el-menu-item>
<!--      <el-submenu index="2">-->
<!--        <template slot="title"><i class="el-icon-setting"></i>视频管理</template>-->
<!--        <el-menu-item index="send1">发布云养</el-menu-item>-->
<!--        <el-menu-item index="send2">发布寻宠</el-menu-item>-->
<!--        <el-menu-item index="send3">发布送养</el-menu-item>-->
<!--      </el-submenu>-->
      <el-menu-item index="foodcontroller">
        <template slot="title"><i class="el-icon-setting"></i>饮食管理</template>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
  export default {
    name: "Nvg",
    data() {
      const item = {
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      };
      return {
        tableData: Array(20).fill(item)
      }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },
      open() {
        this.$message('这是一条消息提示');
      }
    }
  }
</script>

<style scoped>

</style>
